package so.library;

import ivan.bookKeeper.R;
import domain.Library;
import android.content.Context;
import so.GeneralSystemOperation;

public class AddLibrary extends GeneralSystemOperation {

	public AddLibrary(Context context) {
		super(context);
	}

	@Override
	protected Object doInBackground(Object... params) {
		Library library = (Library) params[0];
		dbHandler.insertObject(library);
		toastMessage = library.toString() + " " + context.getString(R.string.toastMessage_success_add);		
		return null;
	}	
}
